<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title><%= dgettext("marketing", "Tuist's blog") %></title>
    <description><%= dgettext("marketing", "Blog posts by the Tuist team.") %></description>
    <link><%= Tuist.Environment.app_url(path: ~p"/blog") %></link>
    <lastBuildDate><%= @last_build_date |> Timex.format!("{RFC1123}") %></lastBuildDate>
    <pubDate><%= @last_build_date |> Timex.format!("{RFC1123}") %></pubDate>
    <ttl>1800</ttl>
    <atom:link href="<%= Tuist.Environment.app_url(path: ~p"/blog/rss.xml") %>" rel="self" type="application/rss+xml"/>

    <%= for post <- @posts do %>
      <item>
        <title><![CDATA[ <%= post.title %> ]]></title>
        <description><![CDATA[ <%= post.body %> ]]></description>
        <link><%= Tuist.Environment.app_url(path: post.slug) %></link>
        <guid isPermaLink="false"><%= post.slug %></guid>
        <pubDate><%= post.date |> Timex.format!("{RFC1123}")  %></pubDate>
      </item>
    <% end %>
  </channel>
</rss>
